function [obsdata] = gensynthdataBC3E (N, k, k_hat, cla_ensm, clu_ensm)

for i=1:clu_ensm
 
    
 tempT = ceil(k_hat*rand(N,1));
 temp  = zeros(N,k_hat);
 temp  = temp';
 temp2 = tempT+k_hat*[0:N-1]';
 temp(temp2)=1;
 tempT     = temp';
     
 dataw2(i).w=tempT;
 
end

for j=1:cla_ensm
    
 tempC = ceil(k*rand(N,1));
 temp  = zeros(N,k);
 temp  = temp';
 temp2 = tempC+k*[0:N-1]';
 temp(temp2)=1;
 tempC     = temp';
     
 dataw1(j).w=tempC;
 
end


obsdata.dataw1 = dataw1;
obsdata.dataw2 = dataw2;

obsdata.r1     = cla_ensm;
obsdata.r2     = clu_ensm;



end
